package edu.gdkm.exceptiondemo;

public class Division {
    public static void d(String a,String b){
        try {
            int x = Integer.parseInt(a);         //将字符串转换成整数
            int y = Integer.parseInt(b);
            System.out.println(x / y);
        }catch (Exception e){
            System.out.println(e);
        }
    }
}
